package com.hmall.api.client;

import com.hmall.api.config.DefaultFeigenConfig;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: UserClient
 * Package:
 * Description
 * 用户相关接口
 *
 * @Author xw
 * @Create 2023/12/9 15:06
 */
@FeignClient(value = "user-service", configuration = DefaultFeigenConfig.class)
//声明服务名称,configuration = DefaultFeigenConfig.classd 日志级别
public interface UserClient {

    @PutMapping("/users/money/deduct")
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
